package com.woniuxy.classdeans.mapper;

import com.woniuxy.commons.entity.wyh.TeamCondition;
import com.woniuxy.commons.entity.wyh.TeamInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 班级信息
 *
 * @author 王艳辉
 * @date 2020/7/17 - 11:59
 */
public interface TeamInfoMapper {
    //获取所有信息
    public List<TeamInfo> getAll(Integer begin,Integer size);

    //获取所有的记录总数
    public long getTotal();

    //根据条件查询
    public List<TeamInfo> getByCondition(@Param("condition") TeamCondition condition,@Param("page") Integer page,@Param("limit") Integer limit);

    //根据条件查询记录总数
    public long getCountByCondition(TeamCondition condition);



    //批量删除
    public int delBatch(String[] array);


    //根据id获取班级信息
    public TeamInfo getByTeid(TeamInfo teamInfo);

    //根据id删除班级信息
    public int delByTeid(TeamInfo teamInfo);

    //根据id更新班级信息
    public int updateByTeid(TeamInfo teamInfo);

    //新增班级信息并返回
    public int add(TeamInfo teamInfo);
}
